﻿using Ninject.Modules;
using NpCrm.DataAccess;
using NpCrm.DataAccess.Core;
using NpCrm.Domain;

namespace NpCrm.WebClient.NinjectModules
{
    public class NinjectBindModule : NinjectModule
    {
        public override void Load()
        {
            Bind<IRepository<Contact, int>>().To<NpCrmRepository<Contact, int>>();
            Bind<IUnitOfWork>().To<NpCrmUnitOfWork>();
            Bind<IContactRepository>().To<ContactRepository>();
        }
    }
}